Skip to content

fix(document-schema.js): state the annotation fields on the hand-written interfaces - #1208

Merged
Mearman merged 1 commit into
mainfrom
fix/annotation-interfaces
Sep 11, 2026
Merged

fix(document-schema.js): state the annotation fields on the hand-written interfaces#1208
Mearman merged 1 commit into
mainfrom
fix/annotation-interfaces

Conversation

@Mearman

@Mearman Mearman commented Sep 10, 2026

Copy link
Copy Markdown
Member

Fixes a defect PR #1204 shipped with: the origin/interpretation spread reached every zod schema but not the hand-written interfaces of the recursive family (ContentTableCell, ContentTable, ContentEmbeddedObject), which do not derive from their schemas. A consumer setting origin on a ContentTable literal fails to typecheck against the interface while parsing fine against the schema -- caught by PR #1202's ooxml.js reader wiring (ooxml.js typecheck: TS2353).

Needed before #1202's reader wiring can land on top of current main.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review Completed 2026-09-10T21:46:06.763986Z 12647de PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Mearman
Mearman force-pushed the fix/annotation-interfaces branch from 12647de to 6ec51fb Compare September 10, 2026 21:47
…ten interfaces

The origin/interpretation spread reached every zod schema but not the
three interfaces of the recursive family that do not derive from their
schemas (ContentTableCell, ContentTable, ContentEmbeddedObject).

A field added to only one side compiles away silently, the exact drift
the interfaces' own comments warn about. A consumer setting origin on a
ContentTable literal failed to typecheck against the interface while
parsing fine against the schema.
@Mearman
Mearman force-pushed the fix/annotation-interfaces branch from 6ec51fb to 2ea23f6 Compare September 11, 2026 02:48
@Mearman
Mearman merged commit 1f85f17 into main Sep 11, 2026
26 of 31 checks passed
@Mearman
Mearman deleted the fix/annotation-interfaces branch September 11, 2026 03:08
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 7.9.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant